﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Xml.Serialization;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<InOutLine> InOutLines { get; set; }
    }

    [Table("InOutLines")]
    public class InOutLine : AuditableEntity
    {
        [Key]
        public int InOutLineID { get; set; }

        public int InOutID { get; set; }

        public int ProductID { get; set; }

        public int OrderID { get; set; }

        public int PartnerID { get; set; }

        public string Status { get; set; }
    }

    public class InOutLineComplex
    {
        public int InOutLineID { get; set; }

        public int InOutID { get; set; }

        public int ProductID { get; set; }

        public int OrderID { get; set; }

        public int PartnerID { get; set; }

        public string Status { get; set; }

        public string Barcode { get; set; }

        public string ProductCode { get; set; }

        public string OrderCode { get; set; }

        public string PartnerName { get; set; }

        public bool IsDeleted { get; set; }
    }

    public class ProductMovementComplex
    {
        public int InOutLineID { get; set; }

        public int ProductID { get; set; }

        public string Barcode { get; set; }

        public string ProductCode { get; set; }

        public int PartnerID { get; set; }        

        public string PartnerName { get; set; }

        public string LocationName { get; set; }

        public DateTime Expired { get; set; }

        public DateTime DateFrom { get; set; }

        public DateTime? DateTo { get; set; }

        public bool IsDeleted { get; set; }

        public string Type { get; set; }

        public bool inSovigaz { get; set; }
    }
}